<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="../common.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>setting</title>
	<link href="${ctx}/resources/css/project/project.css" rel="stylesheet">
	<link href="${ctx}/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<link href="${ctx}/resources/css/bootstrap/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript" src="${ctx}/resources/js/highcharts/jquery-1.8.2.min.js"></script>

</head>
<body>
	<div class="container p20">
		<div class="row bg-fff">
		<div class="col-md-10">
			<div class="bs-callout help-callout">
				<p>				Edit User				</p>
			</div>
			<form accept-charset="UTF-8" action="${ctx}/user/save" class="form-horizontal" id="save" method="post">
				<div style="display:none">
				<input name="id" type="hidden" value="${user.id}">
				</div>
				<fieldset>
				<div class="form-group">
					<label class="control-label" for="userName">UserName</label>
					<div class="col-sm-10">
						<input class="form-control" id="userName" name="userName" type="text" required value="${user.userName}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="pwd">PassWord</label>
					<div class="col-sm-10">
						<input class="form-control" id="pwd" name="pwd" type="password" required maxlength="15" value="${user.pwd}">
						<div class="light">建议密码长度为8-15位</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="nikeName">NikeName</label>
					<div class="col-sm-10">
						<input class="form-control" id="nikeName" name="nikeName" type="text" value="${user.nikeName}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="email">Email</label>
					<div class="col-sm-10">
						<input class="form-control" id="email" name="email" type="text" value="${user.email}">
					</div>
				</div>
				<div class="form-group">
					<label class="control-label" for="comment">Comment</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="comment" name="comment" rows="4">${user.comment}</textarea>
					</div>
				</div>
				
				</fieldset>
			
				<div class="form-actions">
					<input class="btn btn-save" name="commit"  type="submit" value="确定">
					<a class="btn pull-right" href="${ctx}/user/list">返回</a>
				</div>
			</form>
		</div>
</div>
</div>
</body>
</html>
